Negate operator

Basic and Crystal syntax.

Usage

[-(x)]

Multiplies the value inside the parentheses by -1.

Examples

The following examples are applicable to both Basic and Crystal syntax:

-(-1)

Returns 1 since negative times negative equals positive.

-(1)

Returns -1 since negative times positive equals negative.

-(0-14)

Returns 14.

-({file.QTYONHND})

Returns 144 where {file.QTYONHND} = -144.

- (- (15-18)

Returns -3 since 15 - 18 = -3, -(-3) = +3, -(+3) = -3.

Related topics

Formula 5

Formula 8



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com